Hi Guys,
Can anyone help me, Actually I want to create Array objects in JavaScript with JSON but I don't have idea to do it.
Please reply as soon as possible.
Thanks in advance!!
How to create array objects in JavaScript with JSON?
3507
12-May-2012
Updated on 14-May-2012
Anonymous User
14-May-2012You can create array objects in javascript with JSON using following line of code.
var StudentDetails = {//Array to collect record of Student.
// Information of MCA students
"MCAStudent": [{
"StudentName": "Kumar Vishu",
"Roll_No":100,
"Stream": "Computer Science",
"Course": "MCA"
}]
For more details on this topic you may check out the following link...
http://www.mindstick.com/Articles/c2014256-92e0-4fe9-b76f-23afe7ce60f3/?Creating%20Array%20Objects%20in%20JavaScript%20with%20JSON
I hope it might be resolve your problem. Please marked as answer if this solution will be beneficial for you.